package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user6")
@RestController
public class User6 {
    @RequestMapping("/show")
    public String show(@RequestParam("num") Integer id,
                       @RequestParam(value = "str",required = false) String name){
        return "id : "+id+"<br>"
                +"name : "+name;
    }
}
